//
// Created by linyongzhi on 2023/12/21.
//

#ifndef PC_SDK_DEMO_CPHYUVUTIL_H
#define PC_SDK_DEMO_CPHYUVUTIL_H

#include <libyuv/rotate.h>
#include <cstdint>

class CPHYuvUtil {
public:

    int I420Rotate(uint8_t * src, int src_width, int src_height);

    uint8_t *GetDest();

private:
    // yuv的宽高
    static constexpr int m_width {360};
    static constexpr int m_height {640};
    static constexpr int BUFFER_LEN = m_width * m_height * 3 / 2;

    uint8_t m_dst[BUFFER_LEN];
};


#endif //PC_SDK_DEMO_CPHYUVUTIL_H
